package com.yanqu.road.logic.bussiness.rank;

import com.yanqu.road.entity.rank.cross.CrossUserRank;
import com.yanqu.road.entity.rank.stronghold.CrossActivityUnionRank;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.LinkedList;
import java.util.List;
import java.util.Map;

public class CrossGeneralActivityRankBusiness {
    public static Map<Integer, Map<Integer, LinkedList<CrossUserRank>>> getCrossGeneralRankListMap(List<Integer> activityIdList) {
        return DaoHelper.getCrossGeneralActivityUserRankDaoImpl().getCrossActivityNewRankListMap(activityIdList);
    }

    public static boolean updateCrossActivityNewRankList(List<CrossUserRank> rankList, int conditionType) {
        return DaoHelper.getCrossGeneralActivityUserRankDaoImpl().updateCrossActivityNewRankList(rankList, conditionType);
    }

    public static Map<Integer, Map<Integer, LinkedList<CrossActivityUnionRank>>> getCrossActivityUnionRankListMap(List<Integer> activityIdList) {
        return DaoHelper.getCrossGeneralActivityUnionRankDaoImpl().getCrossActivityUnionRankListMap(activityIdList);
    }

    public static boolean updateCrossActivityUnionRankList(int activityId, int conditionType, LinkedList<CrossActivityUnionRank> newRankList) {
        return DaoHelper.getCrossGeneralActivityUnionRankDaoImpl().updateCrossActivityUnionRankList(activityId, conditionType, newRankList);
    }
}
